what i actually want is the position that the match has occurred. So if i have $nodes with 10 nodes in and my match is at position 3 i want number 3 back. I could do it by calling a template and doing if statement then writing out position was wondering if there is better way of doing it.
match position [SOLVED]
Guys,
I have the following xpath:
[code]
$nodes/node/@id=$myid
[/code]
what i actually want is the position that the match has occurred. So if i have $nodes with 10 nodes in and my match is at position 3 i want number 3 back. I could do it by calling a template and doing if statement then writing out position was wondering if there is better way of doing it.
Regards
Ismial
If anyone is interested i did it this way:
[code]
[/code]
this works but does anyone know if there is a better way of doing this?
Regards
Ismail
is working on a reply...